<?php
defined('_JEXEC') or die();
jimport('joomla.application.component.model');

class AutartiJobsModelAutartiJobCountries extends JModel
{
	function __construct()
  	{
        parent::__construct();
  	}
  	
	/**
	 * Returns the query
	 * @return string The query to be used to retrieve the rows from the database
	 */
	function _buildQuery()
	{
		$query = ' SELECT * '
			. ' FROM #__autartijob_countries'
		;
		
	
		return $query;
	}
	
/**
	 * Retrieves the data
	 * @return array Array of objects containing the data from the database
	 */
	function getData()
	{
		// Lets load the data if it doesn't already exist
		if (empty( $this->_data ))
		{
			$query = $this->_buildQuery();
			$this->_data = $this->_getList($query); 
			
		}

		return $this->_data;
	}
}
?>